package com.think.teaching.mapper;

import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.think.teaching.model.CourseMember;

public interface CourseMemberMapper extends BaseMapper<CourseMember> {
	
	
	@Select("SELECT * FROM course_member WHERE course_id=#{id} ORDER BY `order` DESC LIMIT 1")
	public CourseMember GetFirstMember(Integer id);

}
